﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework5_5
{
    class Program
    {
        static void Main(string[] args)
        {
          
            double []  array = { 0, 1 };
            for (int i = 0; i < 2; i++)
            {
                array[i] = Convert.ToInt32(Console.ReadLine());
            }
                double a = Math.Max(array[1], array[0]);
                double b = Math.Min(array[1], array[0]);
            
            Console.WriteLine(a);
            Console.WriteLine(b);
            Console.ReadKey();



        }
    }
}
